import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

export function findDevInfoByMac(devId) {
    return request({
      url: '/alm/dev/home/findDevInfoByMac/' + devId,
      method: 'get'
    })
  }

  export function findDevHomePageChart(param) {
    return request({
      url: '/alm/dev/home/findDevHomePageChart',
      method: 'post',
      data: param

    })
  }

  export function querHomePage() {
    return request({
      url: '/alm/dev/querHomePage',
      method: 'get'
    })
  }

  export function getOnlineMac() {
    return request({
      url: '/alm/dev/home/getOnlineMac',
      method: 'get'
    })
  }

  export function changePollingMode(param) {
    return request({
      url: '/alm/dev/home/changePollingMode',
      method: 'post',
      data: param
    })
  }